package com.ruoyi.dmpdatacollect.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据采集任务对象 dmp_dcollect_task
 *
 * @author MquanZeng
 * @date 2021-12-17
 */
public class DmpDcollectTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer taskId;

    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    private String taskName;

    /**
     * 任务描述
     */
    @Excel(name = "任务描述")
    private String taskDesc;

    /**
     * 数据抽取方式
     */
    @Excel(name = "数据抽取方式")
    private String loadType;

    /**
     * 数据采集源ID
     */
    private Integer dsId;
    /**
     * 数据采集连接名称【非数据库字段，来自其它表】
     */
    @Excel(name = "数据采集连接名")
    private String dsName;
    /**
     * 数据采集源类型【非数据库字段，来自其它表】
     */
    @Excel(name = "数据采集源类型")
    private String dsType;


    /**
     * 源数据查询语句
     */
    @Excel(name = "源数据查询语句")
    private String selectSql;

    /**
     * Hive连接ID
     */
    private Integer hvcId;
    /**
     * Hive连接配置名【非数据库字段，来自其它表】
     */
    @Excel(name = "Hive连接配置名")
    private String hvcName;

    /**
     * 写入的Hive数据库
     */
    @Excel(name = "写入的Hive数据库")
    private String hiveDb;

    /**
     * 写入的Hive表
     */
    @Excel(name = "写入的Hive表")
    private String hiveTable;

    /**
     * Hive表存储格式
     */
    @Excel(name = "Hive表存储格式")
    private String autocreateStoretype;

    /**
     * 是否自动创建表
     */
    @Excel(name = "是否自动创建表")
    private String isAutocreatetable;

    /**
     * 是否包含data_loadtime列
     */
    @Excel(name = "是否包含data_loadtime列")
    private String isAddcolLoadtime;

    /**
     * 是否自动新增hive列
     */
    @Excel(name = "是否自动新增hive列")
    private String isAutoaddHivecol;

    /**
     * 是否分区表
     */
    @Excel(name = "是否分区表")
    private String isParttable;

    /**
     * 数据采集引擎ID
     */
    private Integer compId;
    /**
     * 数据采集引擎名称【非数据库字段，来自其它表】
     */
    @Excel(name = "数据采集引擎名称")
    private String compName;

    /**
     * DS调度系统编号
     */
    private Integer dolsId;
    /**
     * DS调度系统名称【非数据库字段，来自其它表】
     */
    @Excel(name = "调度系统名称")
    private String dolsName;

    /**
     * 源数据查询语句-变量生成策略信息
     */
    private List<DmpDcollectTaskVariablegen> dmpDcollectTaskVariablegenList;

    /**
     * 分区值生成策略信息
     */
    private List<DmpDcollectTaskPartvaluegen> dmpDcollectTaskPartvaluegenList;

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setLoadType(String loadType) {
        this.loadType = loadType;
    }

    public String getLoadType() {
        return loadType;
    }

    public void setDsId(Integer dsId) {
        this.dsId = dsId;
    }
    public Integer getDsId() {
        return dsId;
    }
    public String getDsName() {
        return dsName;
    }
    public void setDsName(String dsName) {
        this.dsName = dsName;
    }
    public String getDsType() {
        return dsType;
    }
    public void setDsType(String dsType) {
        this.dsType = dsType;
    }

    public void setSelectSql(String selectSql) {
        this.selectSql = selectSql;
    }

    public String getSelectSql() {
        return selectSql;
    }

    public void setHvcId(Integer hvcId) {
        this.hvcId = hvcId;
    }
    public Integer getHvcId() {
        return hvcId;
    }
    public String getHvcName() {
        return hvcName;
    }
    public void setHvcName(String hvcName) {
        this.hvcName = hvcName;
    }

    public void setHiveDb(String hiveDb) {
        this.hiveDb = hiveDb;
    }

    public String getHiveDb() {
        return hiveDb;
    }

    public void setHiveTable(String hiveTable) {
        this.hiveTable = hiveTable;
    }

    public String getHiveTable() {
        return hiveTable;
    }

    public void setAutocreateStoretype(String autocreateStoretype) {
        this.autocreateStoretype = autocreateStoretype;
    }

    public String getAutocreateStoretype() {
        return autocreateStoretype;
    }

    public void setIsAutocreatetable(String isAutocreatetable) {
        this.isAutocreatetable = isAutocreatetable;
    }

    public String getIsAutocreatetable() {
        return isAutocreatetable;
    }

    public void setIsAddcolLoadtime(String isAddcolLoadtime) {
        this.isAddcolLoadtime = isAddcolLoadtime;
    }

    public String getIsAddcolLoadtime() {
        return isAddcolLoadtime;
    }

    public void setIsAutoaddHivecol(String isAutoaddHivecol) {
        this.isAutoaddHivecol = isAutoaddHivecol;
    }

    public String getIsAutoaddHivecol() {
        return isAutoaddHivecol;
    }

    public void setIsParttable(String isParttable) {
        this.isParttable = isParttable;
    }

    public String getIsParttable() {
        return isParttable;
    }

    public Integer getCompId() { return compId; }
    public void setCompId(Integer compId) {
        this.compId = compId;
    }
    public String getCompName() {
        return compName;
    }
    public void setCompName(String compName) {
        this.compName = compName;
    }

    public Integer getDolsId() {
        return dolsId;
    }
    public void setDolsId(Integer dolsId) {
        this.dolsId = dolsId;
    }
    public String getDolsName() {
        return dolsName;
    }
    public void setDolsName(String dolsName) {
        this.dolsName = dolsName;
    }

    public List<DmpDcollectTaskVariablegen> getDmpDcollectTaskVariablegenList() {
        return dmpDcollectTaskVariablegenList;
    }

    public void setDmpDcollectTaskVariablegenList(List<DmpDcollectTaskVariablegen> dmpDcollectTaskVariablegenList) {
        this.dmpDcollectTaskVariablegenList = dmpDcollectTaskVariablegenList;
    }

    public List<DmpDcollectTaskPartvaluegen> getDmpDcollectTaskPartvaluegenList() {
        return dmpDcollectTaskPartvaluegenList;
    }

    public void setDmpDcollectTaskPartvaluegenList(List<DmpDcollectTaskPartvaluegen> dmpDcollectTaskPartvaluegenList) {
        this.dmpDcollectTaskPartvaluegenList = dmpDcollectTaskPartvaluegenList;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("taskName", getTaskName())
                .append("taskDesc", getTaskDesc())
                .append("loadType", getLoadType())
                .append("dsId", getDsId())
                .append("dsName", getDsName())
                .append("dsType", getDsType())
                .append("selectSql", getSelectSql())
                .append("hvcId", getHvcId())
                .append("hiveDb", getHiveDb())
                .append("hiveTable", getHiveTable())
                .append("autocreateStoretype", getAutocreateStoretype())
                .append("isAutocreatetable", getIsAutocreatetable())
                .append("isAddcolLoadtime", getIsAddcolLoadtime())
                .append("isAutoaddHivecol", getIsAutoaddHivecol())
                .append("isParttable", getIsParttable())
                .append("compId", getCompId())
                .append("compName", getCompName())
                .append("dolsId", getDolsId())
                .append("dolsName", getDolsName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("dmpDcollectTaskVariablegenList", getDmpDcollectTaskVariablegenList())
                .append("dmpDcollectTaskPartvaluegenList", getDmpDcollectTaskPartvaluegenList())
                .toString();
    }
}
